package com.atguigu.webadmin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.model.pojo.CityInfo;
import com.atguigu.webadmin.service.CityInfoService;
import com.atguigu.webadmin.mapper.CityInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @Author 梅超凡
 * @Date 2024/11/12~20:25
 * @Description 针对表【city_info】的数据库操作Service实现
*/
@Service
public class CityInfoServiceImpl extends ServiceImpl<CityInfoMapper, CityInfo>
    implements CityInfoService{

    @Autowired
    private CityInfoMapper cityInfoMapper;
    @Override
    public String selectCityNameById(Long cityId) {
        return cityInfoMapper.selectById(cityId).getName();
    }
}




